home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / telnet.elc.z / telnet.elc
Emacs Compiled Lisp  |  1998-10-28  |  5.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 36 | 3a 35 30 3a 30 37 20 31 |an 14 06|:50:07 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 74 65 6c 6e 65 74 |19.0/lis|p/telnet|
|00000070| 2e 65 6c 0a 3b 3b 3b 20 | 65 6d 61 63 73 20 76 65 |.el.;;; |emacs ve|
|00000080| 72 73 69 6f 6e 20 31 39 | 2e 33 30 2e 37 30 2e 36 |rsion 19|.30.70.6|
|00000090| 2e 0a 3b 3b 3b 20 62 79 | 74 65 63 6f 6d 70 20 76 |..;;; by|tecomp v|
|000000a0| 65 72 73 69 6f 6e 20 46 | 53 46 20 32 2e 31 30 0a |ersion F|SF 2.10.|
|000000b0| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|000000c0| 20 69 73 20 6f 6e 2e 0a | 3b 3b 3b 20 74 68 69 73 | is on..|;;; this|
|000000d0| 20 66 69 6c 65 20 75 73 | 65 73 20 6f 70 63 6f 64 | file us|es opcod|
|000000e0| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|000000f0| 65 78 69 73 74 20 69 6e | 20 45 6d 61 63 73 20 31 |exist in| Emacs 1|
|00000100| 38 2e 0a 0a 28 69 66 20 | 28 61 6e 64 20 28 62 6f |8...(if |(and (bo|
|00000110| 75 6e 64 70 20 27 65 6d | 61 63 73 2d 76 65 72 73 |undp 'em|acs-vers|
|00000120| 69 6f 6e 29 0a 09 20 28 | 6f 72 20 28 61 6e 64 20 |ion).. (|or (and |
|00000130| 28 62 6f 75 6e 64 70 20 | 27 65 70 6f 63 68 3a 3a |(boundp |'epoch::|
|00000140| 76 65 72 73 69 6f 6e 29 | 20 65 70 6f 63 68 3a 3a |version)| epoch::|
|00000150| 76 65 72 73 69 6f 6e 29 | 0a 09 20 20 20 20 20 28 |version)|.. (|
|00000160| 73 74 72 69 6e 67 2d 6c | 65 73 73 70 20 65 6d 61 |string-l|essp ema|
|00000170| 63 73 2d 76 65 72 73 69 | 6f 6e 20 22 31 39 2e 32 |cs-versi|on "19.2|
|00000180| 39 22 29 29 29 0a 20 20 | 20 20 28 65 72 72 6f 72 |9"))). | (error|
|00000190| 20 22 60 74 65 6c 6e 65 | 74 2e 65 6c 27 20 77 61 | "`telne|t.el' wa|
|000001a0| 73 20 63 6f 6d 70 69 6c | 65 64 20 66 6f 72 20 45 |s compil|ed for E|
|000001b0| 6d 61 63 73 20 31 39 2e | 32 39 20 6f 72 20 6c 61 |macs 19.|29 or la|
|000001c0| 74 65 72 22 29 29 0a 0a | 0a 28 62 79 74 65 2d 63 |ter"))..|.(byte-c|
|000001d0| 6f 64 65 20 22 c0 c1 21 | 88 c2 c3 21 84 5c 66 00 |ode "..!|...!.\f.|
|000001e0| c4 13 c3 0d 42 15 c2 c6 | 21 84 19 00 c7 16 06 c6 |....B...|!.......|
|000001f0| 0d 42 15 c2 c8 21 84 26 | 00 c9 16 08 c8 0d 42 15 |.B...!.&|......B.|
|00000200| c2 ca 21 84 33 00 c7 16 | 5c 6e ca 0d 42 15 cb c2 |..!.3...|\n..B...|
|00000210| cc 21 84 41 00 cd 16 5c | 66 cc 0d 42 15 ce cc cf |.!.A...\|f..B....|
|00000220| d0 23 88 cc 21 88 cb c2 | d1 21 84 58 00 d2 16 11 |.#..!...|.!.X....|
|00000230| d1 0d 42 15 ce d1 cf d3 | 23 88 d1 21 87 22 20 5b |..B.....|#..!." [|
|00000240| 72 65 71 75 69 72 65 20 | 63 6f 6d 69 6e 74 20 62 |require |comint b|
|00000250| 6f 75 6e 64 70 20 74 65 | 6c 6e 65 74 2d 6e 65 77 |oundp te|lnet-new|
|00000260| 2d 6c 69 6e 65 20 22 0d | 22 20 63 75 72 72 65 6e |-line ".|" curren|
|00000270| 74 2d 6c 6f 61 64 2d 6c | 69 73 74 20 74 65 6c 6e |t-load-l|ist teln|
|00000280| 65 74 2d 6d 6f 64 65 2d | 6d 61 70 20 6e 69 6c 20 |et-mode-|map nil |
|00000290| 74 65 6c 6e 65 74 2d 70 | 72 6f 6d 70 74 2d 70 61 |telnet-p|rompt-pa|
|000002a0| 74 74 65 72 6e 20 22 5e | 5b 5e 23 24 25 3e 5c 6e |ttern "^|[^#$%>\n|
|000002b0| 5d 2a 5b 23 24 25 3e 5d | 20 2a 22 20 74 65 6c 6e |]*[#$%>]| *" teln|
|000002c0| 65 74 2d 72 65 70 6c 61 | 63 65 2d 63 2d 67 20 6d |et-repla|ce-c-g m|
|000002d0| 61 6b 65 2d 76 61 72 69 | 61 62 6c 65 2d 62 75 66 |ake-vari|able-buf|
|000002e0| 66 65 72 2d 6c 6f 63 61 | 6c 20 74 65 6c 6e 65 74 |fer-loca|l telnet|
|000002f0| 2d 72 65 6d 6f 74 65 2d | 65 63 68 6f 65 73 20 74 |-remote-|echoes t|
|00000300| 20 70 75 74 20 76 61 72 | 69 61 62 6c 65 2d 64 6f | put var|iable-do|
|00000310| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 22 54 72 75 |cumentat|ion "Tru|
|00000320| 65 20 69 66 20 74 68 65 | 20 74 65 6c 6e 65 74 20 |e if the| telnet |
|00000330| 70 72 6f 63 65 73 73 20 | 77 69 6c 6c 20 65 63 68 |process |will ech|
|00000340| 6f 20 69 6e 70 75 74 2e | 22 20 74 65 6c 6e 65 74 |o input.|" telnet|
|00000350| 2d 69 6e 74 65 72 72 75 | 70 74 2d 73 74 72 69 6e |-interru|pt-strin|
|00000360| 67 20 22 03 22 20 22 53 | 74 72 69 6e 67 20 73 65 |g "." "S|tring se|
|00000370| 6e 74 20 62 79 20 43 2d | 63 2e 22 5d 20 35 29 0a |nt by C-|c."] 5).|
|00000380| 23 40 37 34 20 4e 75 6d | 62 65 72 20 6f 66 20 6f |#@74 Num|ber of o|
|00000390| 75 74 70 75 74 20 73 74 | 72 69 6e 67 73 20 66 72 |utput st|rings fr|
|000003a0| 6f 6d 20 74 65 6c 6e 65 | 74 20 70 72 6f 63 65 73 |om telne|t proces|
|000003b0| 73 20 77 68 69 6c 65 20 | 6c 6f 6f 6b 69 6e 67 20 |s while |looking |
|000003c0| 66 6f 72 20 70 61 73 73 | 77 6f 72 64 2e 1f 0a 28 |for pass|word...(|
|000003d0| 64 65 66 76 61 72 20 74 | 65 6c 6e 65 74 2d 63 6f |defvar t|elnet-co|
|000003e0| 75 6e 74 20 30 20 28 23 | 24 20 2e 20 39 30 31 29 |unt 0 (#|$ . 901)|
|000003f0| 29 0a 28 6d 61 6b 65 2d | 76 61 72 69 61 62 6c 65 |).(make-|variable|
|00000400| 2d 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 20 28 71 |-buffer-|local (q|
|00000410| 75 6f 74 65 20 74 65 6c | 6e 65 74 2d 63 6f 75 6e |uote tel|net-coun|
|00000420| 74 29 29 0a 23 40 34 35 | 20 50 72 6f 67 72 61 6d |t)).#@45| Program|
|00000430| 20 74 6f 20 72 75 6e 20 | 74 6f 20 6f 70 65 6e 20 | to run |to open |
|00000440| 61 20 74 65 6c 6e 65 74 | 20 63 6f 6e 6e 65 63 74 |a telnet| connect|
|00000450| 69 6f 6e 2e 1f 0a 28 64 | 65 66 76 61 72 20 74 65 |ion...(d|efvar te|
|00000460| 6c 6e 65 74 2d 70 72 6f | 67 72 61 6d 20 22 74 65 |lnet-pro|gram "te|
|00000470| 6c 6e 65 74 22 20 28 23 | 24 20 2e 20 31 30 36 35 |lnet" (#|$ . 1065|
|00000480| 29 29 0a 23 40 31 34 37 | 20 49 6e 69 74 69 61 6c |)).#@147| Initial|
|00000490| 20 76 61 6c 75 65 20 6f | 66 20 60 74 65 6c 6e 65 | value o|f `telne|
|000004a0| 74 2d 63 6f 75 6e 74 27 | 2e 20 20 53 68 6f 75 6c |t-count'|. Shoul|
|000004b0| 64 20 62 65 20 73 65 74 | 20 74 6f 20 74 68 65 20 |d be set| to the |
|000004c0| 6e 65 67 61 74 69 76 65 | 20 6f 66 20 74 68 65 0a |negative| of the.|
|000004d0| 6e 75 6d 62 65 72 20 6f | 66 20 74 65 72 6d 69 6e |number o|f termin|
|000004e0| 61 6c 20 77 72 69 74 65 | 73 20 74 65 6c 6e 65 74 |al write|s telnet|
|000004f0| 20 77 69 6c 6c 20 6d 61 | 6b 65 20 73 65 74 74 69 | will ma|ke setti|
|00000500| 6e 67 20 75 70 20 74 68 | 65 20 68 6f 73 74 20 63 |ng up th|e host c|
|00000510| 6f 6e 6e 65 63 74 69 6f | 6e 2e 1f 0a 28 64 65 66 |onnectio|n...(def|
|00000520| 76 61 72 20 74 65 6c 6e | 65 74 2d 69 6e 69 74 69 |var teln|et-initi|
|00000530| 61 6c 2d 63 6f 75 6e 74 | 20 2d 35 30 20 28 23 24 |al-count| -50 (#$|
|00000540| 20 2e 20 31 31 36 31 29 | 29 0a 23 40 32 33 37 20 | . 1161)|).#@237 |
|00000550| 4d 61 78 69 6d 75 6d 20 | 76 61 6c 75 65 20 60 74 |Maximum |value `t|
|00000560| 65 6c 6e 65 74 2d 63 6f | 75 6e 74 27 20 63 61 6e |elnet-co|unt' can|
|00000570| 20 68 61 76 65 2e 0a 41 | 66 74 65 72 20 74 68 69 | have..A|fter thi|
|00000580| 73 20 6d 61 6e 79 20 70 | 61 73 73 65 73 2c 20 77 |s many p|asses, w|
|00000590| 65 20 73 74 6f 70 20 6c | 6f 6f 6b 69 6e 67 20 66 |e stop l|ooking f|
|000005a0| 6f 72 20 69 6e 69 74 69 | 61 6c 20 73 65 74 75 70 |or initi|al setup|
|000005b0| 20 64 61 74 61 2e 0a 53 | 68 6f 75 6c 64 20 62 65 | data..S|hould be|
|000005c0| 20 73 65 74 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 | set to |the numb|
|000005d0| 65 72 20 6f 66 20 74 65 | 72 6d 69 6e 61 6c 20 77 |er of te|rminal w|
|000005e0| 72 69 74 65 73 20 74 65 | 6c 6e 65 74 20 77 69 6c |rites te|lnet wil|
|000005f0| 6c 20 6d 61 6b 65 0a 72 | 65 6a 65 63 74 69 6e 67 |l make.r|ejecting|
|00000600| 20 6f 6e 65 20 6c 6f 67 | 69 6e 20 61 6e 64 20 70 | one log|in and p|
|00000610| 72 6f 6d 70 74 69 6e 67 | 20 61 67 61 69 6e 20 66 |rompting| again f|
|00000620| 6f 72 20 61 20 75 73 65 | 72 6e 61 6d 65 20 61 6e |or a use|rname an|
|00000630| 64 20 70 61 73 73 77 6f | 72 64 2e 1f 0a 28 64 65 |d passwo|rd...(de|
|00000640| 66 76 61 72 20 74 65 6c | 6e 65 74 2d 6d 61 78 69 |fvar tel|net-maxi|
|00000650| 6d 75 6d 2d 63 6f 75 6e | 74 20 34 20 28 23 24 20 |mum-coun|t 4 (#$ |
|00000660| 2e 20 31 33 36 30 29 29 | 0a 28 64 65 66 61 6c 69 |. 1360))|.(defali|
|00000670| 61 73 20 27 74 65 6c 6e | 65 74 2d 69 6e 74 65 72 |as 'teln|et-inter|
|00000680| 72 75 70 74 2d 73 75 62 | 6a 6f 62 20 23 5b 6e 69 |rupt-sub|job #[ni|
|00000690| 6c 20 22 c0 c1 5c 6e 5c | 22 87 22 20 5b 73 65 6e |l "..\n\|"." [sen|
|000006a0| 64 2d 73 74 72 69 6e 67 | 20 6e 69 6c 20 74 65 6c |d-string| nil tel|
|000006b0| 6e 65 74 2d 69 6e 74 65 | 72 72 75 70 74 2d 73 74 |net-inte|rrupt-st|
|000006c0| 72 69 6e 67 5d 20 33 20 | 6e 69 6c 20 6e 69 6c 5d |ring] 3 |nil nil]|
|000006d0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 74 65 6c |).(defal|ias 'tel|
|000006e0| 6e 65 74 2d 63 2d 7a 20 | 23 5b 6e 69 6c 20 22 c0 |net-c-z |#[nil ".|
|000006f0| c1 c2 5c 22 87 22 20 5b | 73 65 6e 64 2d 73 74 72 |..\"." [|send-str|
|00000700| 69 6e 67 20 6e 69 6c 20 | 22 1a 22 5d 20 33 20 6e |ing nil |"."] 3 n|
|00000710| 69 6c 20 6e 69 6c 5d 29 | 0a 28 64 65 66 61 6c 69 |il nil])|.(defali|
|00000720| 61 73 20 27 73 65 6e 64 | 2d 70 72 6f 63 65 73 73 |as 'send|-process|
|00000730| 2d 6e 65 78 74 2d 63 68 | 61 72 20 23 5b 6e 69 6c |-next-ch|ar #[nil|
|00000740| 20 22 c0 c1 c2 c3 1c c5 | 20 c1 16 06 29 21 5c 22 | "......| ...)!\"|
|00000750| 87 22 20 5b 73 65 6e 64 | 2d 73 74 72 69 6e 67 20 |." [send|-string |
|00000760| 6e 69 6c 20 63 68 61 72 | 2d 74 6f 2d 73 74 72 69 |nil char|-to-stri|
|00000770| 6e 67 20 74 20 69 6e 68 | 69 62 69 74 2d 71 75 69 |ng t inh|ibit-qui|
|00000780| 74 20 72 65 61 64 2d 63 | 68 61 72 20 71 75 69 74 |t read-c|har quit|
|00000790| 2d 66 6c 61 67 5d 20 35 | 20 6e 69 6c 20 6e 69 6c |-flag] 5| nil nil|
|000007a0| 5d 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |]).(byte|-code ".|
|000007b0| 84 21 00 c1 20 5c 6e a4 | 10 c3 08 c4 c5 23 88 c3 |.!.. \n.|.....#..|
|000007c0| 08 c6 c7 23 88 c3 08 c8 | c9 23 88 c3 08 ca cb 23 |...#....|.#.....#|
|000007d0| 88 c1 87 22 20 5b 74 65 | 6c 6e 65 74 2d 6d 6f 64 |..." [te|lnet-mod|
|000007e0| 65 2d 6d 61 70 20 6d 61 | 6b 65 2d 73 70 61 72 73 |e-map ma|ke-spars|
|000007f0| 65 2d 6b 65 79 6d 61 70 | 20 63 6f 6d 69 6e 74 2d |e-keymap| comint-|
|00000800| 6d 6f 64 65 2d 6d 61 70 | 20 64 65 66 69 6e 65 2d |mode-map| define-|
|00000810| 6b 65 79 20 22 0d 22 20 | 74 65 6c 6e 65 74 2d 73 |key "." |telnet-s|
|00000820| 65 6e 64 2d 69 6e 70 75 | 74 20 22 03 11 22 20 73 |end-inpu|t ".." s|
|00000830| 65 6e 64 2d 70 72 6f 63 | 65 73 73 2d 6e 65 78 74 |end-proc|ess-next|
|00000840| 2d 63 68 61 72 20 22 03 | 03 22 20 74 65 6c 6e 65 |-char ".|." telne|
|00000850| 74 2d 69 6e 74 65 72 72 | 75 70 74 2d 73 75 62 6a |t-interr|upt-subj|
|00000860| 6f 62 20 22 03 1a 22 20 | 74 65 6c 6e 65 74 2d 63 |ob ".." |telnet-c|
|00000870| 2d 7a 5d 20 34 29 0a 23 | 40 35 35 20 54 72 69 65 |-z] 4).#|@55 Trie|
|00000880| 73 20 74 6f 20 70 75 74 | 20 63 6f 72 72 65 63 74 |s to put| correct|
|00000890| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 73 | initial|izations|
|000008a0| 20 69 6e 2e 20 20 4e 65 | 65 64 73 20 77 6f 72 6b | in. Ne|eds work|
|000008b0| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 74 65 |...(defa|lias 'te|
|000008c0| 6c 6e 65 74 2d 63 68 65 | 63 6b 2d 73 6f 66 74 77 |lnet-che|ck-softw|
|000008d0| 61 72 65 2d 74 79 70 65 | 2d 69 6e 69 74 69 61 6c |are-type|-initial|
|000008e0| 69 7a 65 20 23 5b 28 73 | 74 72 69 6e 67 29 20 22 |ize #[(s|tring) "|
|000008f0| c0 19 c2 c3 5c 66 5c 22 | 83 12 00 0d 16 06 c7 16 |....\f\"|........|
|00000900| 08 82 36 00 c2 c9 5c 66 | 5c 22 83 1f 00 ca 16 06 |..6...\f|\"......|
|00000910| 82 36 00 c2 cb 5c 66 5c | 22 83 2c 00 cc 16 06 82 |.6...\f\|".,.....|
|00000920| 36 00 c2 cd 5c 66 5c 22 | 83 36 00 ce 16 0f 29 0e |6...\f\"|.6....).|
|00000930| 06 89 15 87 22 20 5b 74 | 20 63 61 73 65 2d 66 6f |...." [t| case-fo|
|00000940| 6c 64 2d 73 65 61 72 63 | 68 20 73 74 72 69 6e 67 |ld-searc|h string|
|00000950| 2d 6d 61 74 63 68 20 22 | 75 6e 69 78 22 20 73 74 |-match "|unix" st|
|00000960| 72 69 6e 67 20 63 6f 6d | 69 6e 74 2d 70 72 6f 6d |ring com|int-prom|
|00000970| 70 74 2d 72 65 67 65 78 | 70 20 74 65 6c 6e 65 74 |pt-regex|p telnet|
|00000980| 2d 70 72 6f 6d 70 74 2d | 70 61 74 74 65 72 6e 20 |-prompt-|pattern |
|00000990| 22 5c 6e 22 20 74 65 6c | 6e 65 74 2d 6e 65 77 2d |"\n" tel|net-new-|
|000009a0| 6c 69 6e 65 20 22 74 6f | 70 73 2d 32 30 22 20 22 |line "to|ps-20" "|
|000009b0| 5b 40 3e 5d 2a 22 20 22 | 69 74 73 22 20 22 5e 5b |[@>]*" "|its" "^[|
|000009c0| 5e 2a 3e 5c 6e 5d 2a 5b | 2a 3e 5d 20 2a 22 20 22 |^*>\n]*[|*>] *" "|
|000009d0| 65 78 70 6c 6f 72 65 72 | 22 20 31 30 20 74 65 6c |explorer|" 10 tel|
|000009e0| 6e 65 74 2d 72 65 70 6c | 61 63 65 2d 63 2d 67 5d |net-repl|ace-c-g]|
|000009f0| 20 33 20 28 23 24 20 2e | 20 32 31 37 32 29 5d 29 | 3 (#$ .| 2172)])|
|00000a00| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 74 65 6c 6e |.(defali|as 'teln|
|00000a10| 65 74 2d 69 6e 69 74 69 | 61 6c 2d 66 69 6c 74 65 |et-initi|al-filte|
|00000a20| 72 20 23 5b 28 70 72 6f | 63 20 73 74 72 69 6e 67 |r #[(pro|c string|
|00000a30| 29 20 22 c0 c1 5c 6e 5c | 22 83 11 00 c3 c4 0d 21 |) "..\n\|"......!|
|00000a40| 21 88 c6 c7 21 87 c0 c8 | 5c 6e 5c 22 83 2b 00 c9 |!...!...|\n\".+..|
|00000a50| 0d 5c 6e 5c 22 88 ca 16 | 0b cc 0d cd ce cf 5c 22 |.\n\"...|......\"|
|00000a60| 0e 10 50 5c 22 87 d1 5c | 6e 21 88 c9 0d 5c 6e 5c |..P\"..\|n!...\n\|
|00000a70| 22 88 0e 0b 0e 12 56 83 | 41 00 d3 0d c9 5c 22 87 |".....V.|A....\".|
|00000a80| 0e 0b 54 89 16 0b 87 22 | 20 5b 73 74 72 69 6e 67 |..T...."| [string|
|00000a90| 2d 6d 61 74 63 68 20 22 | 4e 6f 20 73 75 63 68 20 |-match "|No such |
|00000aa0| 68 6f 73 74 22 20 73 74 | 72 69 6e 67 20 6b 69 6c |host" st|ring kil|
|00000ab0| 6c 2d 62 75 66 66 65 72 | 20 70 72 6f 63 65 73 73 |l-buffer| process|
|00000ac0| 2d 62 75 66 66 65 72 20 | 70 72 6f 63 20 65 72 72 |-buffer |proc err|
|00000ad0| 6f 72 20 22 4e 6f 20 73 | 75 63 68 20 68 6f 73 74 |or "No s|uch host|
|00000ae0| 2e 22 20 22 70 61 73 73 | 77 22 20 74 65 6c 6e 65 |." "pass|w" telne|
|00000af0| 74 2d 66 69 6c 74 65 72 | 20 30 20 74 65 6c 6e 65 |t-filter| 0 telne|
|00000b00| 74 2d 63 6f 75 6e 74 20 | 73 65 6e 64 2d 73 74 72 |t-count |send-str|
|00000b10| 69 6e 67 20 63 6f 6d 69 | 6e 74 2d 72 65 61 64 2d |ing comi|nt-read-|
|00000b20| 6e 6f 65 63 68 6f 20 22 | 50 61 73 73 77 6f 72 64 |noecho "|Password|
|00000b30| 3a 20 22 20 74 20 74 65 | 6c 6e 65 74 2d 6e 65 77 |: " t te|lnet-new|
|00000b40| 2d 6c 69 6e 65 20 74 65 | 6c 6e 65 74 2d 63 68 65 |-line te|lnet-che|
|00000b50| 63 6b 2d 73 6f 66 74 77 | 61 72 65 2d 74 79 70 65 |ck-softw|are-type|
|00000b60| 2d 69 6e 69 74 69 61 6c | 69 7a 65 20 74 65 6c 6e |-initial|ize teln|
|00000b70| 65 74 2d 6d 61 78 69 6d | 75 6d 2d 63 6f 75 6e 74 |et-maxim|um-count|
|00000b80| 20 73 65 74 2d 70 72 6f | 63 65 73 73 2d 66 69 6c | set-pro|cess-fil|
|00000b90| 74 65 72 5d 20 35 5d 29 | 0a 28 64 65 66 61 6c 69 |ter] 5])|.(defali|
|00000ba0| 61 73 20 27 74 65 6c 6e | 65 74 2d 73 69 6d 70 6c |as 'teln|et-simpl|
|00000bb0| 65 2d 73 65 6e 64 20 23 | 5b 28 70 72 6f 63 20 73 |e-send #|[(proc s|
|00000bc0| 74 72 69 6e 67 29 20 22 | c0 09 5c 6e 5c 22 88 c0 |tring) "|..\n\"..|
|00000bd0| 09 0b 5c 22 87 22 20 5b | 63 6f 6d 69 6e 74 2d 73 |..\"." [|comint-s|
|00000be0| 65 6e 64 2d 73 74 72 69 | 6e 67 20 70 72 6f 63 20 |end-stri|ng proc |
|00000bf0| 73 74 72 69 6e 67 20 74 | 65 6c 6e 65 74 2d 6e 65 |string t|elnet-ne|
|00000c00| 77 2d 6c 69 6e 65 5d 20 | 33 5d 29 0a 28 64 65 66 |w-line] |3]).(def|
|00000c10| 61 6c 69 61 73 20 27 74 | 65 6c 6e 65 74 2d 66 69 |alias 't|elnet-fi|
|00000c20| 6c 74 65 72 20 23 5b 28 | 70 72 6f 63 20 73 74 72 |lter #[(|proc str|
|00000c30| 69 6e 67 29 20 22 8a c0 | 09 21 71 88 c2 c3 09 21 |ing) "..|.!q....!|
|00000c40| 21 1c 60 5c 66 5a 1d 0e | 06 85 19 00 c2 0e 06 21 |!.`\fZ..|.......!|
|00000c50| 1e 07 c8 70 21 89 1e 09 | 85 28 00 ca 0e 09 21 1e |...p!...|.(....!.|
|00000c60| 0b 5c 66 62 88 cc 0e 0d | 21 88 c3 09 21 60 ce 93 |.\fb....|!...!`..|
|00000c70| 88 0e 0b 83 46 00 cf 0e | 09 0e 0b d0 23 88 0e 07 |....F...|....#...|
|00000c80| 83 52 00 0e 06 0e 07 ce | 93 88 d1 5c 66 78 88 60 |.R......|...\fx.`|
|00000c90| 5c 66 56 83 64 00 60 53 | 60 7c 88 82 52 00 c3 09 |\fV.d.`S|`|..R...|
|00000ca0| 21 62 88 0e 12 83 77 00 | d3 5c 66 60 d4 0e 12 d0 |!b....w.|.\f`....|
|00000cb0| 25 88 0d d5 56 85 83 00 | c3 09 21 0d 5c 5c 62 2e |%...V...|..!.\\b.|
|00000cc0| 06 87 22 20 5b 70 72 6f | 63 65 73 73 2d 62 75 66 |.." [pro|cess-buf|
|00000cd0| 66 65 72 20 70 72 6f 63 | 20 6d 61 72 6b 65 72 2d |fer proc| marker-|
|00000ce0| 70 6f 73 69 74 69 6f 6e | 20 70 72 6f 63 65 73 73 |position| process|
|00000cf0| 2d 6d 61 72 6b 20 6c 61 | 73 74 2d 69 6e 73 65 72 |-mark la|st-inser|
|00000d00| 74 69 6f 6e 20 64 65 6c | 74 61 20 63 6f 6d 69 6e |tion del|ta comin|
|00000d10| 74 2d 6c 61 73 74 2d 69 | 6e 70 75 74 2d 65 6e 64 |t-last-i|nput-end|
|00000d20| 20 69 65 20 67 65 74 2d | 62 75 66 66 65 72 2d 77 | ie get-|buffer-w|
|00000d30| 69 6e 64 6f 77 20 77 20 | 77 69 6e 64 6f 77 2d 73 |indow w |window-s|
|00000d40| 74 61 72 74 20 77 73 20 | 69 6e 73 65 72 74 2d 62 |tart ws |insert-b|
|00000d50| 65 66 6f 72 65 2d 6d 61 | 72 6b 65 72 73 20 73 74 |efore-ma|rkers st|
|00000d60| 72 69 6e 67 20 6e 69 6c | 20 73 65 74 2d 77 69 6e |ring nil| set-win|
|00000d70| 64 6f 77 2d 73 74 61 72 | 74 20 74 20 22 5e 0d 22 |dow-star|t t "^."|
|00000d80| 20 74 65 6c 6e 65 74 2d | 72 65 70 6c 61 63 65 2d | telnet-|replace-|
|00000d90| 63 2d 67 20 73 75 62 73 | 74 2d 63 68 61 72 2d 69 |c-g subs|t-char-i|
|00000da0| 6e 2d 72 65 67 69 6f 6e | 20 37 20 30 5d 20 37 5d |n-region| 7 0] 7]|
|00000db0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 74 65 6c |).(defal|ias 'tel|
|00000dc0| 6e 65 74 2d 73 65 6e 64 | 2d 69 6e 70 75 74 20 23 |net-send|-input #|
|00000dd0| 5b 6e 69 6c 20 22 c0 20 | 88 09 85 5c 6e 00 5c 6e |[nil ". |...\n.\n|
|00000de0| 0b 7c 87 22 20 5b 63 6f | 6d 69 6e 74 2d 73 65 6e |.|." [co|mint-sen|
|00000df0| 64 2d 69 6e 70 75 74 20 | 74 65 6c 6e 65 74 2d 72 |d-input |telnet-r|
|00000e00| 65 6d 6f 74 65 2d 65 63 | 68 6f 65 73 20 63 6f 6d |emote-ec|hoes com|
|00000e10| 69 6e 74 2d 6c 61 73 74 | 2d 69 6e 70 75 74 2d 73 |int-last|-input-s|
|00000e20| 74 61 72 74 20 63 6f 6d | 69 6e 74 2d 6c 61 73 74 |tart com|int-last|
|00000e30| 2d 69 6e 70 75 74 2d 65 | 6e 64 5d 20 32 20 6e 69 |-input-e|nd] 2 ni|
|00000e40| 6c 20 6e 69 6c 5d 29 0a | 23 40 31 39 30 20 4f 70 |l nil]).|#@190 Op|
|00000e50| 65 6e 20 61 20 6e 65 74 | 77 6f 72 6b 20 6c 6f 67 |en a net|work log|
|00000e60| 69 6e 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 74 6f |in conne|ction to|
|00000e70| 20 68 6f 73 74 20 6e 61 | 6d 65 64 20 48 4f 53 54 | host na|med HOST|
|00000e80| 20 28 61 20 73 74 72 69 | 6e 67 29 2e 0a 43 6f 6d | (a stri|ng)..Com|
|00000e90| 6d 75 6e 69 63 61 74 69 | 6f 6e 20 77 69 74 68 20 |municati|on with |
|00000ea0| 48 4f 53 54 20 69 73 20 | 72 65 63 6f 72 64 65 64 |HOST is |recorded|
|00000eb0| 20 69 6e 20 61 20 62 75 | 66 66 65 72 20 60 2a 74 | in a bu|ffer `*t|
|00000ec0| 65 6c 6e 65 74 2d 48 4f | 53 54 2a 27 2e 0a 4e 6f |elnet-HO|ST*'..No|
|00000ed0| 72 6d 61 6c 6c 79 20 69 | 6e 70 75 74 20 69 73 20 |rmally i|nput is |
|00000ee0| 65 64 69 74 65 64 20 69 | 6e 20 45 6d 61 63 73 20 |edited i|n Emacs |
|00000ef0| 61 6e 64 20 73 65 6e 74 | 20 61 20 6c 69 6e 65 20 |and sent| a line |
|00000f00| 61 74 20 61 20 74 69 6d | 65 2e 1f 0a 28 64 65 66 |at a tim|e...(def|
|00000f10| 61 6c 69 61 73 20 27 74 | 65 6c 6e 65 74 20 23 5b |alias 't|elnet #[|
|00000f20| 28 68 6f 73 74 29 20 22 | c0 19 c2 c3 5c 66 c5 c6 |(host) "|....\f..|
|00000f30| 23 50 1e 07 c8 c9 0e 07 | c9 51 21 1e 5c 6e c6 1e |#P......|.Q!.\n..|
|00000f40| 0b 0e 5c 6e 83 2d 00 cc | 0e 5c 6e 21 83 2d 00 cd |..\n.-..|.\n!.-..|
|00000f50| c9 0e 07 c9 51 21 82 5d | 00 cd ce 0e 07 0e 0f 5c |....Q!.]|.......\|
|00000f60| 22 21 88 cc 70 21 16 0b | d0 0e 0b d1 5c 22 88 d2 |"!..p!..|....\"..|
|00000f70| 0e 0b 21 88 d3 20 88 d4 | 0e 0b d5 5c 66 d6 51 5c |..!.. ..|...\f.Q\|
|00000f80| 22 88 d7 20 88 d8 16 19 | 0e 1a 89 16 1b 2c 87 22 |".. ....|.....,."|
|00000f90| 20 5b 28 33 32 20 39 29 | 20 63 6f 6d 69 6e 74 2d | [(32 9)| comint-|
|00000fa0| 64 65 6c 69 6d 69 74 65 | 72 2d 61 72 67 75 6d 65 |delimite|r-argume|
|00000fb0| 6e 74 2d 6c 69 73 74 20 | 22 74 65 6c 6e 65 74 2d |nt-list |"telnet-|
|00000fc0| 22 20 63 6f 6d 69 6e 74 | 2d 61 72 67 75 6d 65 6e |" comint|-argumen|
|00000fd0| 74 73 20 68 6f 73 74 20 | 30 20 6e 69 6c 20 6e 61 |ts host |0 nil na|
|00000fe0| 6d 65 20 67 65 74 2d 62 | 75 66 66 65 72 20 22 2a |me get-b|uffer "*|
|00000ff0| 22 20 62 75 66 66 65 72 | 20 70 72 6f 63 65 73 73 |" buffer| process|
|00001000| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 70 72 6f 63 | get-buf|fer-proc|
|00001010| 65 73 73 20 70 6f 70 2d | 74 6f 2d 62 75 66 66 65 |ess pop-|to-buffe|
|00001020| 72 20 6d 61 6b 65 2d 63 | 6f 6d 69 6e 74 20 74 65 |r make-c|omint te|
|00001030| 6c 6e 65 74 2d 70 72 6f | 67 72 61 6d 20 73 65 74 |lnet-pro|gram set|
|00001040| 2d 70 72 6f 63 65 73 73 | 2d 66 69 6c 74 65 72 20 |-process|-filter |
|00001050| 74 65 6c 6e 65 74 2d 69 | 6e 69 74 69 61 6c 2d 66 |telnet-i|nitial-f|
|00001060| 69 6c 74 65 72 20 61 63 | 63 65 70 74 2d 70 72 6f |ilter ac|cept-pro|
|00001070| 63 65 73 73 2d 6f 75 74 | 70 75 74 20 65 72 61 73 |cess-out|put eras|
|00001080| 65 2d 62 75 66 66 65 72 | 20 73 65 6e 64 2d 73 74 |e-buffer| send-st|
|00001090| 72 69 6e 67 20 22 6f 70 | 65 6e 20 22 20 22 5c 6e |ring "op|en " "\n|
|000010a0| 22 20 74 65 6c 6e 65 74 | 2d 6d 6f 64 65 20 74 65 |" telnet|-mode te|
|000010b0| 6c 6e 65 74 2d 73 69 6d | 70 6c 65 2d 73 65 6e 64 |lnet-sim|ple-send|
|000010c0| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 73 65 | comint-|input-se|
|000010d0| 6e 64 65 72 20 74 65 6c | 6e 65 74 2d 69 6e 69 74 |nder tel|net-init|
|000010e0| 69 61 6c 2d 63 6f 75 6e | 74 20 74 65 6c 6e 65 74 |ial-coun|t telnet|
|000010f0| 2d 63 6f 75 6e 74 5d 20 | 35 20 28 23 24 20 2e 20 |-count] |5 (#$ . |
|00001100| 33 36 36 32 29 20 22 73 | 4f 70 65 6e 20 74 65 6c |3662) "s|Open tel|
|00001110| 6e 65 74 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 74 |net conn|ection t|
|00001120| 6f 20 68 6f 73 74 3a 20 | 22 5d 29 0a 23 40 33 32 |o host: |"]).#@32|
|00001130| 32 20 54 68 69 73 20 6d | 6f 64 65 20 69 73 20 66 |2 This m|ode is f|
|00001140| 6f 72 20 75 73 69 6e 67 | 20 74 65 6c 6e 65 74 20 |or using| telnet |
|00001150| 28 6f 72 20 72 73 68 29 | 20 66 72 6f 6d 20 61 20 |(or rsh)| from a |
|00001160| 62 75 66 66 65 72 20 74 | 6f 20 61 6e 6f 74 68 65 |buffer t|o anothe|
|00001170| 72 20 68 6f 73 74 2e 0a | 49 74 20 68 61 73 20 6d |r host..|It has m|
|00001180| 6f 73 74 20 6f 66 20 74 | 68 65 20 73 61 6d 65 20 |ost of t|he same |
|00001190| 63 6f 6d 6d 61 6e 64 73 | 20 61 73 20 63 6f 6d 69 |commands| as comi|
|000011a0| 6e 74 2d 6d 6f 64 65 2e | 0a 54 68 65 72 65 20 69 |nt-mode.|.There i|
|000011b0| 73 20 61 20 76 61 72 69 | 61 62 6c 65 20 60 60 74 |s a vari|able ``t|
|000011c0| 65 6c 6e 65 74 2d 69 6e | 74 65 72 72 75 70 74 2d |elnet-in|terrupt-|
|000011d0| 73 74 72 69 6e 67 27 27 | 20 77 68 69 63 68 20 69 |string''| which i|
|000011e0| 73 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 0a |s the ch|aracter.|
|000011f0| 73 65 6e 74 20 74 6f 20 | 74 72 79 20 74 6f 20 73 |sent to |try to s|
|00001200| 74 6f 70 20 65 78 65 63 | 75 74 69 6f 6e 20 6f 66 |top exec|ution of|
|00001210| 20 61 20 6a 6f 62 20 6f | 6e 20 74 68 65 20 72 65 | a job o|n the re|
|00001220| 6d 6f 74 65 20 68 6f 73 | 74 2e 0a 44 61 74 61 20 |mote hos|t..Data |
|00001230| 69 73 20 73 65 6e 74 20 | 74 6f 20 74 68 65 20 72 |is sent |to the r|
|00001240| 65 6d 6f 74 65 20 68 6f | 73 74 20 77 68 65 6e 20 |emote ho|st when |
|00001250| 52 45 54 20 69 73 20 74 | 79 70 65 64 2e 0a 0a 5c |RET is t|yped...\|
|00001260| 7b 74 65 6c 6e 65 74 2d | 6d 6f 64 65 2d 6d 61 70 |{telnet-|mode-map|
|00001270| 7d 0a 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 74 |}...(def|alias 't|
|00001280| 65 6c 6e 65 74 2d 6d 6f | 64 65 20 23 5b 6e 69 6c |elnet-mo|de #[nil|
|00001290| 20 22 c0 20 88 c1 12 c3 | 14 0d 16 06 c7 0e 08 21 | ". ....|.......!|
|000012a0| 88 c9 ca 21 87 22 20 5b | 63 6f 6d 69 6e 74 2d 6d |...!." [|comint-m|
|000012b0| 6f 64 65 20 74 65 6c 6e | 65 74 2d 6d 6f 64 65 20 |ode teln|et-mode |
|000012c0| 6d 61 6a 6f 72 2d 6d 6f | 64 65 20 22 54 65 6c 6e |major-mo|de "Teln|
|000012d0| 65 74 22 20 6d 6f 64 65 | 2d 6e 61 6d 65 20 74 65 |et" mode|-name te|
|000012e0| 6c 6e 65 74 2d 70 72 6f | 6d 70 74 2d 70 61 74 74 |lnet-pro|mpt-patt|
|000012f0| 65 72 6e 20 63 6f 6d 69 | 6e 74 2d 70 72 6f 6d 70 |ern comi|nt-promp|
|00001300| 74 2d 72 65 67 65 78 70 | 20 75 73 65 2d 6c 6f 63 |t-regexp| use-loc|
|00001310| 61 6c 2d 6d 61 70 20 74 | 65 6c 6e 65 74 2d 6d 6f |al-map t|elnet-mo|
|00001320| 64 65 2d 6d 61 70 20 72 | 75 6e 2d 68 6f 6f 6b 73 |de-map r|un-hooks|
|00001330| 20 74 65 6c 6e 65 74 2d | 6d 6f 64 65 2d 68 6f 6f | telnet-|mode-hoo|
|00001340| 6b 5d 20 32 20 28 23 24 | 20 2e 20 34 34 30 32 29 |k] 2 (#$| . 4402)|
|00001350| 20 6e 69 6c 5d 29 0a 23 | 40 31 38 37 20 4f 70 65 | nil]).#|@187 Ope|
|00001360| 6e 20 61 20 6e 65 74 77 | 6f 72 6b 20 6c 6f 67 69 |n a netw|ork logi|
|00001370| 6e 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 74 6f 20 |n connec|tion to |
|00001380| 68 6f 73 74 20 6e 61 6d | 65 64 20 48 4f 53 54 20 |host nam|ed HOST |
|00001390| 28 61 20 73 74 72 69 6e | 67 29 2e 0a 43 6f 6d 6d |(a strin|g)..Comm|
|000013a0| 75 6e 69 63 61 74 69 6f | 6e 20 77 69 74 68 20 48 |unicatio|n with H|
|000013b0| 4f 53 54 20 69 73 20 72 | 65 63 6f 72 64 65 64 20 |OST is r|ecorded |
|000013c0| 69 6e 20 61 20 62 75 66 | 66 65 72 20 60 2a 72 73 |in a buf|fer `*rs|
|000013d0| 68 2d 48 4f 53 54 2a 27 | 2e 0a 4e 6f 72 6d 61 6c |h-HOST*'|..Normal|
|000013e0| 6c 79 20 69 6e 70 75 74 | 20 69 73 20 65 64 69 74 |ly input| is edit|
|000013f0| 65 64 20 69 6e 20 45 6d | 61 63 73 20 61 6e 64 20 |ed in Em|acs and |
|00001400| 73 65 6e 74 20 61 20 6c | 69 6e 65 20 61 74 20 61 |sent a l|ine at a|
|00001410| 20 74 69 6d 65 2e 1f 0a | 28 64 65 66 61 6c 69 61 | time...|(defalia|
|00001420| 73 20 27 72 73 68 20 23 | 5b 28 68 6f 73 74 29 20 |s 'rsh #|[(host) |
|00001430| 22 c0 c1 21 88 c2 0b 50 | 1c c5 c6 5c 66 0e 07 c8 |"..!...P|...\f...|
|00001440| 0b 24 21 88 c9 ca 5c 66 | 21 cb 5c 22 88 cc 20 88 |.$!...\f|!.\".. .|
|00001450| cd 89 16 0e 29 87 22 20 | 5b 72 65 71 75 69 72 65 |....)." |[require|
|00001460| 20 73 68 65 6c 6c 20 22 | 72 73 68 2d 22 20 68 6f | shell "|rsh-" ho|
|00001470| 73 74 20 6e 61 6d 65 20 | 70 6f 70 2d 74 6f 2d 62 |st name |pop-to-b|
|00001480| 75 66 66 65 72 20 6d 61 | 6b 65 2d 63 6f 6d 69 6e |uffer ma|ke-comin|
|00001490| 74 20 72 65 6d 6f 74 65 | 2d 73 68 65 6c 6c 2d 70 |t remote|-shell-p|
|000014a0| 72 6f 67 72 61 6d 20 6e | 69 6c 20 73 65 74 2d 70 |rogram n|il set-p|
|000014b0| 72 6f 63 65 73 73 2d 66 | 69 6c 74 65 72 20 67 65 |rocess-f|ilter ge|
|000014c0| 74 2d 70 72 6f 63 65 73 | 73 20 74 65 6c 6e 65 74 |t-proces|s telnet|
|000014d0| 2d 69 6e 69 74 69 61 6c | 2d 66 69 6c 74 65 72 20 |-initial|-filter |
|000014e0| 74 65 6c 6e 65 74 2d 6d | 6f 64 65 20 2d 31 36 20 |telnet-m|ode -16 |
|000014f0| 74 65 6c 6e 65 74 2d 63 | 6f 75 6e 74 5d 20 36 20 |telnet-c|ount] 6 |
|00001500| 28 23 24 20 2e 20 34 39 | 35 37 29 20 22 73 4f 70 |(#$ . 49|57) "sOp|
|00001510| 65 6e 20 72 73 68 20 63 | 6f 6e 6e 65 63 74 69 6f |en rsh c|onnectio|
|00001520| 6e 20 74 6f 20 68 6f 73 | 74 3a 20 22 5d 29 0a 28 |n to hos|t: "]).(|
|00001530| 70 72 6f 76 69 64 65 20 | 28 71 75 6f 74 65 20 74 |provide |(quote t|
|00001540| 65 6c 6e 65 74 29 29 0a | |elnet)).| |
+--------+-------------------------+-------------------------+--------+--------+